package com.le.tester.javaThink.fifth.chapter14_StreamingProgramming;

import java.util.Optional;

/**
 * 描述：streamOptionals
 */
public class StreamOfOptionals {
    public static void main(String[] args) {
        Signal.stream().limit(10)
                .forEach(System.out::println);

        System.out.println("----");

        Signal.stream().limit(10).filter(Optional::isPresent).map(Optional::get).forEach(System.out::println);
    }
}
